-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update the hive workaround to support the new hive #1287
update the hive workaround to support the new hive #1287
Conversation
@@ -102,7 +102,7 @@ | |||
File Should Not Be Empty ${osp_clouds_yaml} | |||
${shell_script} = Catenate | |||
... ${CURDIR}/OSP/create_fips.sh ${cluster_name} ${infrastructure_configurations}[base_domain] | |||
... ${infrastructure_configurations}[osp_network] ${infrastructure_configurations}[osp_cloud_name] ${artifacts_dir}/ | |||
... ${infrastructure_configurations}[osp_network] ${infrastructure_configurations}[osp_cloud_name] ${artifacts_dir}/ |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning
${claim_status} = Run Process | ||
... oc -n ${hive_namespace} get clusterclaim ${claim_name} -o json | jq '.status.conditions[] | select(.type\=\="ClusterRunning" and .reason\=\="Resuming")' --exit-status shell=yes | ||
${claim_status} = Run Process | ||
... oc -n ${hive_namespace} get clusterclaim ${claim_name} -o json | jq '.status.conditions[] | select(.type\=\="ClusterRunning" and (.reason\=\="Resuming" or .reason\=\="Running"))' --exit-status shell=yes |
Check warning
Code scanning / Robocop
Line is too long ({{ line_length }}/{{ allowed_length }}) Warning
related to jira ticket: RHOAIENG-3338 Signed-off-by: Kobi Hakimi <[email protected]>
ae361b8
to
0357f31
Compare
Robot Results
|
|
In the old Hive the cluster status was Resuming instead of Running so we had the workaround to check that
In the new Hive this issue was fixed and the status is Running but to support both we updated the workaround
verified with old Hive:
➜ oc -n rhods get clusterclaim ods-qe-psi-03-claim -o json | jq '.status.conditions[] | select(.type=="ClusterRunning" and (.reason=="Resuming" or .reason=="Running"))' --exit-status
{
"lastProbeTime": "2024-03-05T17:38:34Z",
"lastTransitionTime": "2024-03-05T17:38:34Z",
"message": "Waiting for cluster to be running",
"reason": "Resuming",
"status": "False",
"type": "ClusterRunning"
}
➜
verified with the New Hive:
➜ oc -n rhoai get clusterclaim ods-qe-psi-04-claim -o json | jq '.status.conditions[] | select(.type=="ClusterRunning" and (.reason=="Resuming" or .reason=="Running"))' --exit-status
{
"lastProbeTime": "2024-03-13T11:42:33Z",
"lastTransitionTime": "2024-03-13T11:42:33Z",
"message": "Cluster is running",
"reason": "Running",
"status": "True",
"type": "ClusterRunning"
}
➜
related to jira ticket: RHOAIENG-3338